package day4;

public class dowhile1{
    public static void main(String[] tags){
        int sum=0;
        int i = 1;
        do{
            if(i % 2 == 0){
                sum += i;
            }
            i++;
        }while(i <= 100);
        System.out.println("从一到一百偶数和为" + sum);
    }
}